package com.bocai.user.model.param;

import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author create by VIC.Huang
 * @date 2018/1/29
 */
@Data
@Accessors(chain = true)
public class PayParam implements Serializable {
    @DecimalMin(value = "0.01", message = "price最小值为0.01,最大值为99999.99")
    @DecimalMax(value = "99999.99", message = "price最小值为0.01,最大值为99999.99")
    private BigDecimal price;
    @NotBlank(message = "type不允许为空！1：支付宝 2：QQ钱包 3：微信")
    private String type;
    @NotBlank(message = "payId不允许为空！值应为用户ID")
    private String payId;
    private String customParam;     // 自定义参数，支付后返回做业务处理
}
